/* let a = [{
        name: 'zs',
        age: '18'
    },
    {
        name: 'ls',
        age: '20'
    }
]
let res = a.forEach(obj => {
    return obj.name
}); */
let a = {
    name: 'zs',
    age: 18
}
console.log(a['name']);